#include "mainwindow.h"
#include "GraphicsView.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    int mode = 1;
    if(mode == 0){
        MainWindow w;
        w.setGeometry(0, 0, 1600, 1600);
        w.onLoad();
        w.show();
    }else{
        QGraphicsScene *scene = new QGraphicsScene;
        FCUIView *uiView = new FCUIView;
        FCGraphicsView *view = new FCGraphicsView;
        view->setScene(scene);
        view->setGeometry(0, 0, 1800, 1800);
        view->setAlignment(Qt::AlignLeft | Qt::AlignTop);
        uiView->m_graphicsView = view;
        view->m_objectItem = uiView;
        scene->addItem(uiView);
        view->onLoad();
        view->show();
    }
    return a.exec();
}
